package me.xplabs.controller 
{
	import me.xplabs.model.proxy.LoaderMapProxy;
	import me.xplabs.model.proxy.MMapManagerProxy;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * http://www.xplabs.me/
	 * @author xiaohan
	 */
	public class TryAgainCommand extends SimpleCommand 
	{
		
		public function TryAgainCommand() 
		{
			
		}
		override public function execute(notification:INotification):void 
		{
			if (!facade.hasProxy(LoaderMapProxy.NAME)) facade.registerProxy(new LoaderMapProxy());
			var tempMapManager:MMapManagerProxy = MMapManagerProxy(facade.retrieveProxy(MMapManagerProxy.NAME));
			tempMapManager.dispose();
			LoaderMapProxy(facade.retrieveProxy(LoaderMapProxy.NAME)).setMapData(tempMapManager.raidId);
		}
	}

}